package com.koron.css2.serviceManage.mapper;

import com.koron.css2.serviceManage.bean.TAuthorizationBean;
import com.koron.css2.serviceManage.bean.TAuthorizationBeanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 授权表
 * @author Zhuoyanxu
 *
 */
public interface TAuthorizationMapper {
	List<TAuthorizationBean> selectTAuthorizationByName(@Param("departmentId")List<String> departmentId,@Param("userName")String userName,@Param("companyCode")String companyCode);

	Integer deleteTAuthorizationById(TAuthorizationBeanVO tAuthorizationBeanVO);
	Integer deleteTAuthorizationByCode(TAuthorizationBean tAuthorizationBeanVO);

	Integer insertTAuthorization(TAuthorizationBean tAuthorizationBean);

	TAuthorizationBean getTAuthorizationByauthorizationValue(TAuthorizationBean authorizationValue);
	
	List<String> selectConpany(List<String> id);
	List<String> selectUserRoleGroup(@Param("loginid")String loginid);
}